import Vue from 'vue'
import Vuex from 'vuex'
import {product} from './product/product'
import {login} from './login/login'
import { dynamicmenu } from './dynamicmenu/dynamicmenu'

Vue.use(Vuex)

export default new Vuex.Store({
    state:{
        collapse:false
    },
    mutations:{
        changeCollapse(state,payload){
            state.collapse=payload;
        }
    },
    modules:{
        product,
        login,
        dynamicmenu
    }
})